<?php
namespace app\patrol\logic;

class IndexLogic extends BaseLogic {

    /**
     * 检查社区巡店分部规则
     * @param $branchid
     * @return mixed
     */
    public function check_cp_branch_rule($branchid){
        $cp = new \app\common\controller\Cp();
        $cp_branch_info = $cp->get_cp_branch_info($branchid);
        if(!$cp_branch_info){
            return $this->get_response(0,'系统异常，请联系管理员');
        }

        $data['cp_branch_info'] = $cp_branch_info;
        return $this->get_response(1,'OK',$data);
    }
}